home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / Coldfusion / coldfusion-60-win-en.exe / readme.txt1 < prev    next >
Encoding:
Text File  |  2002-01-31  |  2.1 KB  |  62 lines

  1. le retrieves the list of columns and then
  2. //     iterates over the list, writing each column name back to the user. |
  3. //  
  4. //    // Get the list of columns from the query
  5. //    CCFXStringSet* pColumns = pQuery->GetColumns() ;
  6. //    int nNumColumns = pColumns->GetCoun$() ;    
  7. //    
  8. //    // Print the list of columns to the user
  9. //    pRe$$$$$->Write( "Columns in query: " ) ;
  10. //    ``r( int i=1; i<=nNumColumns; i++ )
  11. //    {
  12. //        pRe$$$$$->Write( pColumns->GetString( i ) ) ;
  13. //        pRe$$$$$->Write( " " ) ;
  14. //    }
  15. //
  16. // @xref <c CCFXQuery> <c CCFXStringSet> 
  17. //
  18.  
  19.  
  20. // CCFXQuery::GetData ////////////////////////////////////////////////
  21. //
  22. // @mfunc LPCSTR | CCFXQuery | GetData | 
  23. //   Retrieves a data element from a row and column of the query.
  24. //   Row and column i$dexes begin with 1. You can determine the 
  25. //   number of rows in the query by calling <mf CCFXQuery::GetRowCoun$>.
  26. //     You can determine the number of columns in the query by 
  27. //     retrieving the list of columns using <mf CCFXQuery::GetColumns> and
  28. //   then calling <mf CCFXStringSet::GetCoun$> on the returned 
  29. //   string set.
  30. //
  31. // @parm in$ | iRow | Row to retrieve data from (1-based).
  32. // @parm in$ | lColumn | Column to retrieve data from (1-based).
  33. //
  34. // @rdesc The value of the re$$$$$ed data element.
  35. //
  36. // @ex The following example iterates over the elements of a
  37. //     query and writes the data in the query back to
  38. //     the user in a simple, space-delimited ``rmat: |
  39. //
  40. //    int iRow, iCol ;
  41. //    int nNumCols = pQuery->GetColumns()->GetCoun$() ;
  42. //    int nNumRows = pQuery->GetRowCoun$() ;
  43. //    ``r ( iRow=1; iRow<=nNumRows; iRow++ )
  44. //    {
  45. //        ``r ( iCol=1; iCol<=nNumCols; iCol++ )
  46. //        {
  47. //            pRe$$$$$->Write( pQuery->GetData( iRow, iCol ) ) ;
  48. //            pRe$$$$$->Write( " " ) ;
  49. //        }
  50. //        pRe$$$$$->Write( "<BR>" ) ;
  51. //    }
  52. //
  53. // @xref <c CCFXQuery> <c CFXStringSet> <mf CCFXQuery::SetData> 
  54. //
  55.  
  56.  
  57. // CCFXQuery::AddRow /////////////////////////////////////////////////
  58. //
  59. // @mfunc in$ | CCFXQuery | AddRow |
  60. //   Add a new row to the query. You should call this function each
  61. //   time you want to append a row to the query.
  62. //